
#ifndef __APP_UART_H__
#define __APP_UART_H__


/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
typedef enum
{
	eUART_MIN=0,
//	eUART_CH1=eUART_MIN,	// for debugging...
#if		defined(BSP_DEVICE_TOUCH)
	eUART_CH2=eUART_MIN,
	eUART_CH3,

	eUART_CAM13=eUART_CH2,
	eUART_CAM24=eUART_CH3,
#elif	defined(BSP_DEVICE_CAMERA)
	eUART_CH3=eUART_MIN,
	eUART_CH4,

	eUART_TOUCH=eUART_CH3,
	eUART_CAMSUB=eUART_CH4,
#endif	//BSP_DEVICE_xxx
	eUART_MAX,
} UART_TYPE;

/* Exported constants --------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/* Exported define -----------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void Uart_Init(void);

void Uart_PktProc(void);
void Uart_PktCmd(u8 uart, u8 cmd, u8 dev, u16 len, u8 *data);
void Uart_PktRes(u8 uart, u8 res, u8 dev, u8 cmd, u16 len, u8 *data);
void Uart_PktEvt(u8 uart, u8 evt, u8 dev, u16 len, u8 *data);

//void USART1_IRQHandler(void);
//void USART2_IRQHandler(void);
//void USART3_IRQHandler(void);
//void UART4_IRQHandler(void);

/* External variables --------------------------------------------------------*/


#endif /*__APP_UART_H__*/

